package com.demo.model;

import org.springframework.context.annotation.Bean;

/**
 * @Author :蕉绿
 * @Date : 2023/2/8 9:05
 * @Version : V1.0
 * @Description :
 */
public class Users {

    @Bean(name = "u1")
    public User user() {
        User user = new User();
        user.setId(1);
        user.setName("张三");
        return user;
    }

}
